package com.ruoyi.manage.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教材列表对象 tb_textbook
 * 
 * @author rjgc17
 * @date 2024-12-24
 */
public class Textbook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 教材ID */
    private Long id;

    /** 教材名称 */
    @Excel(name = "教材名称")
    private String textbookName;

    /** 教材作者 */
    @Excel(name = "教材作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 教材价格 */
    @Excel(name = "教材价格")
    private BigDecimal price;

    /** 教材类型 */
    @Excel(name = "教材类型")
    private String textbookType;

    /** 教材简介 */
    @Excel(name = "教材简介")
    private String introduction;

    /** 教材图片 */
    @Excel(name = "教材图片")
    private String coverImage;

    /** 教材状态 */
    @Excel(name = "教材状态")
    private Integer isOnSale;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTextbookName(String textbookName) 
    {
        this.textbookName = textbookName;
    }

    public String getTextbookName() 
    {
        return textbookName;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTextbookType(String textbookType) 
    {
        this.textbookType = textbookType;
    }

    public String getTextbookType() 
    {
        return textbookType;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }
    public void setIsOnSale(Integer isOnSale) 
    {
        this.isOnSale = isOnSale;
    }

    public Integer getIsOnSale() 
    {
        return isOnSale;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("textbookName", getTextbookName())
            .append("author", getAuthor())
            .append("publisher", getPublisher())
            .append("price", getPrice())
            .append("textbookType", getTextbookType())
            .append("introduction", getIntroduction())
            .append("coverImage", getCoverImage())
            .append("isOnSale", getIsOnSale())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
